import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class PermissionMiddleWare extends GetMiddleware{

  @override
  RouteSettings? redirect(String? route) {
    print("路由中间件,可以进行一些权限控制");
    //return null表示不作任何操作
    // return null;

    //跳转到指定路由
    return const RouteSettings(name: "setting",arguments: {
      "aid":456
    });
  }
}
